package com.ss.android.push.window.oppo;

import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;

public final class h extends GestureDetector.SimpleOnGestureListener {
    public final OppoPushWindowManager d;
    public final int a;
    public final boolean b;
    public final OnClickListener c;

    public h(OppoPushWindowManager arg1, int arg2, boolean arg3, View.OnClickListener arg4) {
        this.d = arg1;
        this.a = arg2;
        this.b = arg3;
        this.c = arg4;

    }

    public final boolean onDown(MotionEvent arg2) {
        return true;
    }

    public final boolean onSingleTapUp(MotionEvent arg4) {
        try {
            this.d.b.flags = 128;
            this.d.a.updateViewLayout(this.d.c, this.d.b);
            this.d.m = false;
            this.d.e.post(new i(this));
        }
        catch(Exception v0) {
            if(d.b()) {
                v0.printStackTrace();
            }

            this.d.c();
        }

        return true;
    }
}

